package com.example.assignment01_javaee.Service.Impl;

import com.example.assignment01_javaee.Dao.AdminDao;
import com.example.assignment01_javaee.Entity.Admin;
import com.example.assignment01_javaee.Service.AdminService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AdminServiceImpl implements AdminService {
    @Autowired
    AdminDao adminDao;

    public Admin Sel(int id){
        return adminDao.Sel(id);
    }

    public Admin login(String adminname, String adminpassword) {
        return adminDao.login(adminname,adminpassword);
    }

}
